package com.oracle.pojo;

import java.util.ArrayList;
import java.util.List;

public class PhPartnerExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PhPartnerExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNoPhetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUmobileIsNull() {
            addCriterion("umobile is null");
            return (Criteria) this;
        }

        public Criteria andUmobileIsNotNull() {
            addCriterion("umobile is not null");
            return (Criteria) this;
        }

        public Criteria andUmobileEqualTo(Integer value) {
            addCriterion("umobile =", value, "umobile");
            return (Criteria) this;
        }

        public Criteria andUmobileNotEqualTo(Integer value) {
            addCriterion("umobile <>", value, "umobile");
            return (Criteria) this;
        }

        public Criteria andUmobileGreaterThan(Integer value) {
            addCriterion("umobile >", value, "umobile");
            return (Criteria) this;
        }

        public Criteria andUmobileGreaterThanOrEqualTo(Integer value) {
            addCriterion("umobile >=", value, "umobile");
            return (Criteria) this;
        }

        public Criteria andUmobileLessThan(Integer value) {
            addCriterion("umobile <", value, "umobile");
            return (Criteria) this;
        }

        public Criteria andUmobileLessThanOrEqualTo(Integer value) {
            addCriterion("umobile <=", value, "umobile");
            return (Criteria) this;
        }

        public Criteria andUmobileIn(List<Integer> values) {
            addCriterion("umobile in", values, "umobile");
            return (Criteria) this;
        }

        public Criteria andUmobileNotIn(List<Integer> values) {
            addCriterion("umobile not in", values, "umobile");
            return (Criteria) this;
        }

        public Criteria andUmobileBetween(Integer value1, Integer value2) {
            addCriterion("umobile between", value1, value2, "umobile");
            return (Criteria) this;
        }

        public Criteria andUmobileNoPhetween(Integer value1, Integer value2) {
            addCriterion("umobile not between", value1, value2, "umobile");
            return (Criteria) this;
        }

        public Criteria andUnameIsNull() {
            addCriterion("uname is null");
            return (Criteria) this;
        }

        public Criteria andUnameIsNotNull() {
            addCriterion("uname is not null");
            return (Criteria) this;
        }

        public Criteria andUnameEqualTo(String value) {
            addCriterion("uname =", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameNotEqualTo(String value) {
            addCriterion("uname <>", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameGreaterThan(String value) {
            addCriterion("uname >", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameGreaterThanOrEqualTo(String value) {
            addCriterion("uname >=", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameLessThan(String value) {
            addCriterion("uname <", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameLessThanOrEqualTo(String value) {
            addCriterion("uname <=", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameLike(String value) {
            addCriterion("uname like", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameNotLike(String value) {
            addCriterion("uname not like", value, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameIn(List<String> values) {
            addCriterion("uname in", values, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameNotIn(List<String> values) {
            addCriterion("uname not in", values, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameBetween(String value1, String value2) {
            addCriterion("uname between", value1, value2, "uname");
            return (Criteria) this;
        }

        public Criteria andUnameNoPhetween(String value1, String value2) {
            addCriterion("uname not between", value1, value2, "uname");
            return (Criteria) this;
        }

        public Criteria andPetphotoIsNull() {
            addCriterion("petphoto is null");
            return (Criteria) this;
        }

        public Criteria andPetphotoIsNotNull() {
            addCriterion("petphoto is not null");
            return (Criteria) this;
        }

        public Criteria andPetphotoEqualTo(String value) {
            addCriterion("petphoto =", value, "petphoto");
            return (Criteria) this;
        }

        public Criteria andPetphotoNotEqualTo(String value) {
            addCriterion("petphoto <>", value, "petphoto");
            return (Criteria) this;
        }

        public Criteria andPetphotoGreaterThan(String value) {
            addCriterion("petphoto >", value, "petphoto");
            return (Criteria) this;
        }

        public Criteria andPetphotoGreaterThanOrEqualTo(String value) {
            addCriterion("petphoto >=", value, "petphoto");
            return (Criteria) this;
        }

        public Criteria andPetphotoLessThan(String value) {
            addCriterion("petphoto <", value, "petphoto");
            return (Criteria) this;
        }

        public Criteria andPetphotoLessThanOrEqualTo(String value) {
            addCriterion("petphoto <=", value, "petphoto");
            return (Criteria) this;
        }

        public Criteria andPetphotoLike(String value) {
            addCriterion("petphoto like", value, "petphoto");
            return (Criteria) this;
        }

        public Criteria andPetphotoNotLike(String value) {
            addCriterion("petphoto not like", value, "petphoto");
            return (Criteria) this;
        }

        public Criteria andPetphotoIn(List<String> values) {
            addCriterion("petphoto in", values, "petphoto");
            return (Criteria) this;
        }

        public Criteria andPetphotoNotIn(List<String> values) {
            addCriterion("petphoto not in", values, "petphoto");
            return (Criteria) this;
        }

        public Criteria andPetphotoBetween(String value1, String value2) {
            addCriterion("petphoto between", value1, value2, "petphoto");
            return (Criteria) this;
        }

        public Criteria andPetphotoNoPhetween(String value1, String value2) {
            addCriterion("petphoto not between", value1, value2, "petphoto");
            return (Criteria) this;
        }

        public Criteria andPetphotolistIsNull() {
            addCriterion("petphotolist is null");
            return (Criteria) this;
        }

        public Criteria andPetphotolistIsNotNull() {
            addCriterion("petphotolist is not null");
            return (Criteria) this;
        }

        public Criteria andPetphotolistEqualTo(String value) {
            addCriterion("petphotolist =", value, "petphotolist");
            return (Criteria) this;
        }

        public Criteria andPetphotolistNotEqualTo(String value) {
            addCriterion("petphotolist <>", value, "petphotolist");
            return (Criteria) this;
        }

        public Criteria andPetphotolistGreaterThan(String value) {
            addCriterion("petphotolist >", value, "petphotolist");
            return (Criteria) this;
        }

        public Criteria andPetphotolistGreaterThanOrEqualTo(String value) {
            addCriterion("petphotolist >=", value, "petphotolist");
            return (Criteria) this;
        }

        public Criteria andPetphotolistLessThan(String value) {
            addCriterion("petphotolist <", value, "petphotolist");
            return (Criteria) this;
        }

        public Criteria andPetphotolistLessThanOrEqualTo(String value) {
            addCriterion("petphotolist <=", value, "petphotolist");
            return (Criteria) this;
        }

        public Criteria andPetphotolistLike(String value) {
            addCriterion("petphotolist like", value, "petphotolist");
            return (Criteria) this;
        }

        public Criteria andPetphotolistNotLike(String value) {
            addCriterion("petphotolist not like", value, "petphotolist");
            return (Criteria) this;
        }

        public Criteria andPetphotolistIn(List<String> values) {
            addCriterion("petphotolist in", values, "petphotolist");
            return (Criteria) this;
        }

        public Criteria andPetphotolistNotIn(List<String> values) {
            addCriterion("petphotolist not in", values, "petphotolist");
            return (Criteria) this;
        }

        public Criteria andPetphotolisPhetween(String value1, String value2) {
            addCriterion("petphotolist between", value1, value2, "petphotolist");
            return (Criteria) this;
        }

        public Criteria andPetphotolistNoPhetween(String value1, String value2) {
            addCriterion("petphotolist not between", value1, value2, "petphotolist");
            return (Criteria) this;
        }

        public Criteria andPetnameIsNull() {
            addCriterion("petname is null");
            return (Criteria) this;
        }

        public Criteria andPetnameIsNotNull() {
            addCriterion("petname is not null");
            return (Criteria) this;
        }

        public Criteria andPetnameEqualTo(String value) {
            addCriterion("petname =", value, "petname");
            return (Criteria) this;
        }

        public Criteria andPetnameNotEqualTo(String value) {
            addCriterion("petname <>", value, "petname");
            return (Criteria) this;
        }

        public Criteria andPetnameGreaterThan(String value) {
            addCriterion("petname >", value, "petname");
            return (Criteria) this;
        }

        public Criteria andPetnameGreaterThanOrEqualTo(String value) {
            addCriterion("petname >=", value, "petname");
            return (Criteria) this;
        }

        public Criteria andPetnameLessThan(String value) {
            addCriterion("petname <", value, "petname");
            return (Criteria) this;
        }

        public Criteria andPetnameLessThanOrEqualTo(String value) {
            addCriterion("petname <=", value, "petname");
            return (Criteria) this;
        }

        public Criteria andPetnameLike(String value) {
            addCriterion("petname like", value, "petname");
            return (Criteria) this;
        }

        public Criteria andPetnameNotLike(String value) {
            addCriterion("petname not like", value, "petname");
            return (Criteria) this;
        }

        public Criteria andPetnameIn(List<String> values) {
            addCriterion("petname in", values, "petname");
            return (Criteria) this;
        }

        public Criteria andPetnameNotIn(List<String> values) {
            addCriterion("petname not in", values, "petname");
            return (Criteria) this;
        }

        public Criteria andPetnameBetween(String value1, String value2) {
            addCriterion("petname between", value1, value2, "petname");
            return (Criteria) this;
        }

        public Criteria andPetnameNoPhetween(String value1, String value2) {
            addCriterion("petname not between", value1, value2, "petname");
            return (Criteria) this;
        }

        public Criteria andPettypeIsNull() {
            addCriterion("pettype is null");
            return (Criteria) this;
        }

        public Criteria andPettypeIsNotNull() {
            addCriterion("pettype is not null");
            return (Criteria) this;
        }

        public Criteria andPettypeEqualTo(Integer value) {
            addCriterion("pettype =", value, "pettype");
            return (Criteria) this;
        }

        public Criteria andPettypeNotEqualTo(Integer value) {
            addCriterion("pettype <>", value, "pettype");
            return (Criteria) this;
        }

        public Criteria andPettypeGreaterThan(Integer value) {
            addCriterion("pettype >", value, "pettype");
            return (Criteria) this;
        }

        public Criteria andPettypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("pettype >=", value, "pettype");
            return (Criteria) this;
        }

        public Criteria andPettypeLessThan(Integer value) {
            addCriterion("pettype <", value, "pettype");
            return (Criteria) this;
        }

        public Criteria andPettypeLessThanOrEqualTo(Integer value) {
            addCriterion("pettype <=", value, "pettype");
            return (Criteria) this;
        }

        public Criteria andPettypeIn(List<Integer> values) {
            addCriterion("pettype in", values, "pettype");
            return (Criteria) this;
        }

        public Criteria andPettypeNotIn(List<Integer> values) {
            addCriterion("pettype not in", values, "pettype");
            return (Criteria) this;
        }

        public Criteria andPettypeBetween(Integer value1, Integer value2) {
            addCriterion("pettype between", value1, value2, "pettype");
            return (Criteria) this;
        }

        public Criteria andPettypeNoPhetween(Integer value1, Integer value2) {
            addCriterion("pettype not between", value1, value2, "pettype");
            return (Criteria) this;
        }

        public Criteria andPetageIsNull() {
            addCriterion("petage is null");
            return (Criteria) this;
        }

        public Criteria andPetageIsNotNull() {
            addCriterion("petage is not null");
            return (Criteria) this;
        }

        public Criteria andPetageEqualTo(Integer value) {
            addCriterion("petage =", value, "petage");
            return (Criteria) this;
        }

        public Criteria andPetageNotEqualTo(Integer value) {
            addCriterion("petage <>", value, "petage");
            return (Criteria) this;
        }

        public Criteria andPetageGreaterThan(Integer value) {
            addCriterion("petage >", value, "petage");
            return (Criteria) this;
        }

        public Criteria andPetageGreaterThanOrEqualTo(Integer value) {
            addCriterion("petage >=", value, "petage");
            return (Criteria) this;
        }

        public Criteria andPetageLessThan(Integer value) {
            addCriterion("petage <", value, "petage");
            return (Criteria) this;
        }

        public Criteria andPetageLessThanOrEqualTo(Integer value) {
            addCriterion("petage <=", value, "petage");
            return (Criteria) this;
        }

        public Criteria andPetageIn(List<Integer> values) {
            addCriterion("petage in", values, "petage");
            return (Criteria) this;
        }

        public Criteria andPetageNotIn(List<Integer> values) {
            addCriterion("petage not in", values, "petage");
            return (Criteria) this;
        }

        public Criteria andPetageBetween(Integer value1, Integer value2) {
            addCriterion("petage between", value1, value2, "petage");
            return (Criteria) this;
        }

        public Criteria andPetageNoPhetween(Integer value1, Integer value2) {
            addCriterion("petage not between", value1, value2, "petage");
            return (Criteria) this;
        }

        public Criteria andPetmatchrequireIsNull() {
            addCriterion("petmatchrequire is null");
            return (Criteria) this;
        }

        public Criteria andPetmatchrequireIsNotNull() {
            addCriterion("petmatchrequire is not null");
            return (Criteria) this;
        }

        public Criteria andPetmatchrequireEqualTo(String value) {
            addCriterion("petmatchrequire =", value, "petmatchrequire");
            return (Criteria) this;
        }

        public Criteria andPetmatchrequireNotEqualTo(String value) {
            addCriterion("petmatchrequire <>", value, "petmatchrequire");
            return (Criteria) this;
        }

        public Criteria andPetmatchrequireGreaterThan(String value) {
            addCriterion("petmatchrequire >", value, "petmatchrequire");
            return (Criteria) this;
        }

        public Criteria andPetmatchrequireGreaterThanOrEqualTo(String value) {
            addCriterion("petmatchrequire >=", value, "petmatchrequire");
            return (Criteria) this;
        }

        public Criteria andPetmatchrequireLessThan(String value) {
            addCriterion("petmatchrequire <", value, "petmatchrequire");
            return (Criteria) this;
        }

        public Criteria andPetmatchrequireLessThanOrEqualTo(String value) {
            addCriterion("petmatchrequire <=", value, "petmatchrequire");
            return (Criteria) this;
        }

        public Criteria andPetmatchrequireLike(String value) {
            addCriterion("petmatchrequire like", value, "petmatchrequire");
            return (Criteria) this;
        }

        public Criteria andPetmatchrequireNotLike(String value) {
            addCriterion("petmatchrequire not like", value, "petmatchrequire");
            return (Criteria) this;
        }

        public Criteria andPetmatchrequireIn(List<String> values) {
            addCriterion("petmatchrequire in", values, "petmatchrequire");
            return (Criteria) this;
        }

        public Criteria andPetmatchrequireNotIn(List<String> values) {
            addCriterion("petmatchrequire not in", values, "petmatchrequire");
            return (Criteria) this;
        }

        public Criteria andPetmatchrequireBetween(String value1, String value2) {
            addCriterion("petmatchrequire between", value1, value2, "petmatchrequire");
            return (Criteria) this;
        }

        public Criteria andPetmatchrequireNoPhetween(String value1, String value2) {
            addCriterion("petmatchrequire not between", value1, value2, "petmatchrequire");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNoPhetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andIsdeleteIsNull() {
            addCriterion("isdelete is null");
            return (Criteria) this;
        }

        public Criteria andIsdeleteIsNotNull() {
            addCriterion("isdelete is not null");
            return (Criteria) this;
        }

        public Criteria andIsdeleteEqualTo(Integer value) {
            addCriterion("isdelete =", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteNotEqualTo(Integer value) {
            addCriterion("isdelete <>", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteGreaterThan(Integer value) {
            addCriterion("isdelete >", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteGreaterThanOrEqualTo(Integer value) {
            addCriterion("isdelete >=", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteLessThan(Integer value) {
            addCriterion("isdelete <", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteLessThanOrEqualTo(Integer value) {
            addCriterion("isdelete <=", value, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteIn(List<Integer> values) {
            addCriterion("isdelete in", values, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteNotIn(List<Integer> values) {
            addCriterion("isdelete not in", values, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteBetween(Integer value1, Integer value2) {
            addCriterion("isdelete between", value1, value2, "isdelete");
            return (Criteria) this;
        }

        public Criteria andIsdeleteNoPhetween(Integer value1, Integer value2) {
            addCriterion("isdelete not between", value1, value2, "isdelete");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createtime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createtime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(String value) {
            addCriterion("createtime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(String value) {
            addCriterion("createtime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(String value) {
            addCriterion("createtime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(String value) {
            addCriterion("createtime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(String value) {
            addCriterion("createtime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(String value) {
            addCriterion("createtime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLike(String value) {
            addCriterion("createtime like", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotLike(String value) {
            addCriterion("createtime not like", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<String> values) {
            addCriterion("createtime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<String> values) {
            addCriterion("createtime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(String value1, String value2) {
            addCriterion("createtime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNoPhetween(String value1, String value2) {
            addCriterion("createtime not between", value1, value2, "createtime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}
